﻿using Orchard.UI.Resources;

namespace SchoolPointe.Menus
{
    public class ResourceManifest : IResourceManifestProvider
    {
        public void BuildManifests(ResourceManifestBuilder builder)
        {
            builder.Add().DefineStyle("jQueryUI_Multiselect").SetUrl("jquery.multiselect.css");
            builder.Add().DefineStyle("MenuEditor").SetUrl("MenuEditor.css").SetDependencies("jQueryUI_Multiselect");            

            builder.Add().DefineScript("jQueryUI_NestedSortable")
                .SetUrl("jquery.ui.nestedSortable.js")
                .SetDependencies("jQueryUI_Sortable");

            builder.Add().DefineScript("jQueryUI_MultiSelect")
                .SetUrl("jquery.multiselect.min.js", "jquery.multiselect.js").SetVersion("1.10")
                .SetDependencies("jQueryUI_Core", "jQueryUI_Widget");

            builder.Add().DefineScript("MenuEditor")
                .SetUrl("MenuEditor.js")
                .SetDependencies("jQueryUI_Accordion","jQueryUI_Tabs","jQueryUI_NestedSortable","jQueryUI_MultiSelect");            
        }
    }
}